/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author shohdi
 */
import java.awt.Polygon;
import java.awt.Rectangle;


public class Astroid extends BaseVectorShape {
    
    private int[] astX = {-20,-13,0,20,22,20,12,02,-10,-22,-16};
    private int[] astY = {20,23,17,20,16,-20,-22,-14,-17,-20,-5};
    double rotVel;
    
    public void setRotVel (double newVel)
    {
        rotVel = newVel;
    }
    
    public double getRotVel ()
    {
        return rotVel;
    }
    
    
    public Rectangle getBounds()
    {
        return new Rectangle ((int)this.getX() -20, (int)this.getY() -20 , 40, 40);
    }
    
    public void incRotVel (double inc)
    {
        rotVel+= inc;
        
    }
    
    
    
    public Astroid ()
    {
        setShape (new Polygon(astX,astY,astX.length));
        setAlive(true);
        setRotVel (0);
        
    }
    
}
